<?php

class BackendurCronItemForm extends PluginurCronItemForm
{
  public function configure()
  {
    parent::configure();

    $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE();
    $this->widgetSchema['previewContent'] = new sfWidgetFormTextareaTinyMCE();
    $this->widgetSchema['original_content'] = new sfWidgetFormTextareaTinyMCE();
    $this->widgetSchema['original_summary'] = new sfWidgetFormTextareaTinyMCE();

    $this->widgetSchema['content']->setAttribute('class', 'item_content');
    $this->widgetSchema['tags_list']->setOption( 'renderer_class' , 'sfWidgetFormSelectDoubleList' );
    $this->widgetSchema['datas_list']->setOption( 'renderer_class', 'sfWidgetFormSelectDoubleList' );
    $this->removeFields();
  }
  
  private function removeFields()
  {
    unset( $this['slug'],
           $this['created_at'],
           $this['updated_at']
         );
  }
}
?>
